﻿using AgentSystem.AgentBaseFunctionality.Data;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web.Script.Serialization;
using System.Xml.Serialization;

namespace AgentSystem.AgentBaseFunctionality.Services
{
    public class AgentService : IAgentService
    {
        public static AgentContainer Agent = null;

        public string SerializedState()
        {
            JavaScriptSerializer jsSerializer = new JavaScriptSerializer();
            var state = jsSerializer.Serialize(ActiveAgent.Instance.GetState());
            return state;
        }
    }
}
